package com.muse.patterns.strategy.duck;

import com.muse.patterns.strategy.fly.FlyNoWay;
import com.muse.patterns.strategy.quack.Squeak;

/**
 * @description 橡胶鸭
 * @author: muse
 **/
public class RubberDuck extends Duck {

    public RubberDuck() {
        flyBehavior = new FlyNoWay(); // 不会飞
        quackBehavior = new Squeak(); // 吱吱叫
    }

    public void display() {
        System.out.println("橡胶鸭的外貌特征");
    }
}
